<!DOCTYPE html>
<html>
{include file="public/head" /}
<body>
          <div class="nav-tabs-custom" style="box-shadow:0 0 0 0; margin:5px;">
            <ul class="nav nav-tabs">
            <li class="active"><a href="#tab_1" data-toggle="tab">基础设置</a></li>
            <li><a href="#tab_2" data-toggle="tab">扩展设置</a></li>               
            </ul> 
        <form id="myform" class="myform form-horizontal"  method="post">
        <input type="hidden" id="special_id" name="special_id" value="{$info['special_id']|default=''}"> 
       <div class="box-body">
           <div class="tab-content tab-fade fade active in " id="tab_1"> 
           <div class="row">


               <div class="input-group margin15">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-title">专题名称：</span>
                <span class="form-left-title-hide"></span>
                </div>
                <!-- /btn-group -->
                <input type="text" class="form-control w30" id="special_name" name="special_name" value="{$info.special_name|default=''}" placeholder="填写专题名称" >  
<span class="btn btn-default btn-flat form-title pull-left hidden-xs hidden-sm" style="margin-left:15px;">专题分类</span>
                <!-- /btn-group -->
               <div class="select-group-t w150 prr0">
                <select id="special_cid" name="special_cid" class="form-control select2" required="required" placeholder="请选择分类" style="width:100%">
                <option value=''>选择分类</option>
{volist name=":F('_data/listspecial')" id="vo"}
 {notempty name="vo.son"}
<optgroup label="{$vo.list_name}">
{volist name="vo['son']" id="splist"}
<option value="{$splist.list_id}" {eq name="splist.list_id" value="$info['special_cid']"}selected{/eq}>├ {$splist.list_name}</option>
{/volist}
  </optgroup>
{else/}
  <option value="{$vo.list_id}" {eq name="vo.list_id" value="$info['special_cid']"}selected{/eq}>{$vo.list_name}</option>
{/notempty}
{/volist}
</select></div> 
<span class="btn btn-default btn-flat form-title pull-left hidden-xs hidden-sm">状态</span>  
<div class="select-group-t w100 prr0">
<select name="special_status" class="form-control select2" style="width:100%">
    <option value="1">已审</option>
     <option value="0" {eq name="info.special_status" value="0" }selected{/eq}>未审</option>
</select> 
</div> <span class="btn btn-default btn-flat form-title pull-left hidden-xs hidden-sm">颜色</span>  

                <div class="input-group color-input w150 hidden-xs hidden-sm">
                       <input type="text" class="form-control" name="special_color"  value="{$info.special_color|default=''}">
                      <div class="input-group-addon"><i style="background-color: rgb(0, 0, 0);"></i></div>
                    </div>
                    <span class="input-group-btn">
<span class="pretty success input-xz">
<input name="sendurl" type="checkbox" value="1" id="checkbox" {empty name="info['special_id']"}checked{/empty}> 
<label><i class="mdi mdi-check"></i> 推送百度</label>
</span>
</span> 
              </div>   

      
               <div class="col-md-6 col-sm-12 col-xs-12 mb10 pr0">
               <div class="input-group">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-title">专题属性：</span>
                <span class="form-left-title-hide"></span>
                </div>
                <!-- /btn-group -->
                <input type="hidden" name="special_prty" value="">
             <span class="text-link form-control">
                      {volist name=":parse('textarea',config('setting.document_position'))" id="vo"}
                      <label class="pretty success">
	  <input type="checkbox" name="special_prty[]" value="{$key}" id="checkbox" {if check_attribute($info['special_prty'],$key)}checked="checked"{/if}> 
	  <label><i class="mdi mdi-check"></i> {$vo|msubstr=0,2}</label>
	</label>
                      {/volist} 
            </span> 
               </div> 
               </div> 
               
              
               <div class="col-md-6 col-sm-12 col-xs-12 mb10">
               <div class="input-group">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-title">数据关联：</span>
                <span class="form-left-title-hide"></span>
                </div>
                <!-- /btn-group -->
                <span class="text-link form-control">
                <span class="margin15">关联视频({$info.topicvod_count|default='0'})个</span>
                <span class="margin15">关联明星({$info.topicstar_count|default='0'})位</span>
                <span class="margin15">关联文章({$info.topicnews_count|default='0'})篇</span>
                </span>
              </div>   
              </div>       
              <div class="col-md-6 col-sm-12 col-xs-12 mb10 pr0">
               <div class="input-group">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-title">专题图片：</span>
                <span class="form-left-title-hide"></span>
                </div>
                <!-- /btn-group -->
               <input class="form-control" size="50" id="special_pic" name="special_pic" type="text" value="{$info['special_pic']|default=''}">
<span class="input-group-btn">
                      <button type="button" class="btn btn-primary btn-flat plupload" id="plupload-image" data-input-id="special_pic" data-mimetype="image/*"   data-multiple="false"><i class="fa fa-upload"></i> 上传</button>
                    </span>
                     
              </div>   
              </div>
               <div class="col-md-6 col-sm-12 col-xs-12 mb10">
               <div class="input-group">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-title">专题大图：</span>
                <span class="form-left-title-hide"></span>
                </div>
                <!-- /btn-group -->
               <input class="form-control" size="50" id="special_bigpic" name="special_bigpic" type="text" value="{$info['special_bigpic']|default=''}">
<span class="input-group-btn">
                      <button type="button" class="btn btn-primary btn-flat plupload" id="plupload-images" data-input-id="special_bigpic" data-mimetype="image/*"   data-multiple="false"><i class="fa fa-upload"></i> 上传</button>
                    </span>
                     
              </div>   
              </div>             
               
                <div class="input-group margin15">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-title">专题介绍：</span>
                <span class="form-left-title-hide"></span>
                </div>
                <!-- /btn-group -->
                <textarea  class="editor"  id="special_content" name="special_content"  style=" width:100%; height:200px">{$info['special_content']}</textarea>
              </div> 
                <div class="input-group margin15">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-title">更新时间：</span>
                <span class="form-left-title-hide"></span>
                </div>
                <!-- /btn-group -->
              <input type="text" name="special_addtime" value="{notempty name="info.special_addtime"}{$info.special_addtime|date='Y-m-d H:i:s',###}{else/}{:date('Y-m-d H:i:s',time())}{/notempty}" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss">
              
<span class="input-group-btn">
<span class="pretty success input-xz">
<input name="special_checktime" type="checkbox" value="1" id="checkbox" {notempty name=":config('system.system_uptime')"}checked{/notempty}> 
<label><i class="mdi mdi-check"></i> 更新时间</label>
</span>
</span>     
              </div>              
               </div>
              <!-- /row --> 
            </div>
            <!-- /.tab_1-->
           <div class="tab-content tab-fade fade " id="tab_2">
            <div class="row">
                <div class="input-group margin15">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-title">专题标题：</span>
                <span class="form-left-title-hide"></span>
                </div>
                <!-- /btn-group -->
                <input type="text" id="special_title"  name="special_title" value="{$info.special_title|default=''}" placeholder="用于前台页面的SEO标题" class="form-control">
              </div>
              
                <div class="input-group margin15">
                <div class="input-group-btn">
                <span class="btn btn-default form-title">专题关键词：</span>
                </div>
                <!-- /btn-group -->
                <input type="text" id="special_keywords"  name="special_keywords" value="{$info.special_keywords|default=''}" class="form-control" placeholder="用于前台页面的关键词,填写关键词获取,留空获取名称关键词长尾词" >
                <span class="input-group-btn">
                 <button type="button" class="btn btn-success btn-flat getkeywords" data-name="special_name" data-names="special_keywords" data-id="special_keywords"><i class="fa fa-plus"></i> 获取关键词</button>
                 </span>
                  <span class="input-group-btn">
                 <span class="pretty success input-xz">
<input name="auto_keywords" type="checkbox" value="1" id="checkbox" {notempty name=":config('system.system_auto_keywords')"}checked{/notempty}> 
<label><i class="mdi mdi-check"></i> 自动获取</label>
</span>
</span>                  
                
              </div>
                 <div class="input-group margin15">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-title">专题描述：</span>
                <span class="form-left-title-hide"></span>
                </div>
                <!-- /btn-group -->
                <textarea  class="form-control" name="special_description" id="special_description">{$info['special_description']|default=''}</textarea>
              </div>
                <div class="input-group margin15">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-title">专题TAG：</span>
                <span class="form-left-title-hide"></span>
                </div>
                <!-- /btn-group -->
                <input type="text" id="special_tag"  name="special_tag" value="{$info.special_tag|default=''}" class="form-control tag" data-tip="TAG标签" >
                <span class="input-group-btn">
                 <button type="button" class="btn btn-success btn-flat btn-editone" href="{:url('tag/showajax',array('sid'=>10))}"  data-name="添加TAG"><i class="fa fa-plus"></i> 添加TAG</button>
                 </span>
                  <span class="input-group-btn">
                 <span class="pretty success input-xz">
<input name="auto_tag" type="checkbox" value="1" id="checkbox" {notempty name=":config('system.system_auto_tag')"}checked{/notempty}> 
<label><i class="mdi mdi-check"></i> 自动生成</label>
</span>
</span>                  
              </div>
             <div class="col-md-6 col-sm-6 col-xs-6 mb10" style="padding-right:0px;">
               <div class="input-group">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-title">节目拼音：</span>
                <span class="form-left-title-hide"></span>
                </div>
                <!-- /btn-group -->
                 <input type="text" name="special_letters"  value="{$info.special_letters|default=''}"  class="form-control text-center" placeholder="留空自动获取">
              </div>   
              </div>
              <div class="col-md-3 col-sm-6 col-xs-6 mb10 pr0">
               <div class="input-group">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-title">首字母：</span>
                <span class="form-left-title-hide"></span>
                </div>
                <!-- /btn-group -->
                 <input type="text" name="special_letter"  value="{$info.special_letter|default=''}" class="form-control text-center" placeholder="留空自动获取">
              </div>   
              </div>             
             <div class="col-md-3 col-sm-6 col-xs-6 mb10 pr0000">
               <div class="input-group">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-title">推荐星级：</span>
                <span class="form-left-title-hide"></span>
                </div>
                <!-- /btn-group -->
                <input name="special_stars" id="special_stars" type="hidden" value="{$info.special_stars|default=''}">
                <span class="text-link form-control" style="padding-top:4px;">
                {volist name=":admin_star_arr($info.special_stars)" id="ajaxstar"}<img src="{$Think.TPL_PATH}tpl/zanpianadmin/img/star{$ajaxstar}.gif" id="special_{$i}" class="addstars" width="19px" height="19px">{/volist}
                </span>
              </div>   
              </div>              
             <div class="col-md-6 col-sm-6 col-xs-6 mb10 pr0">
               <div class="input-group">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-title">独立模版：</span>
                <span class="form-left-title-hide"></span>
                </div>
                <!-- /btn-group -->
                <input type="text" name="special_skin"  value="{$info.special_skin|default=''}" class="form-control text-center" placeholder="留空使用分类中内容模版">
              </div>   
              </div> 
              
             <div class="col-md-3 col-sm-6 col-xs-6 mb10 prrr0">
               <div class="input-group">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-title">总人气：</span>
                <span class="form-left-title-hide"></span>
                </div>
                <!-- /btn-group -->
                <input type="text" id="special_hits" name="special_hits"  value="{$info.special_hits|default=''}" class="form-control text-center" >
              </div>   
              </div>
              
             <div class="col-md-3 col-sm-6 col-xs-6 mb10">
               <div class="input-group">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-title">月人气：</span>
                <span class="form-left-title-hide"></span>
                </div>
                <!-- /btn-group -->
                <input type="text" name="special_hits_month"  value="{$info.special_hits_month|default=''}" class="form-control text-center" >
              </div>   
              </div> 
              <div class="col-md-3 col-sm-6 col-xs-6 mb10 prrr0">
               <div class="input-group">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-title">周人气：</span>
                <span class="form-left-title-hide"></span>
                </div>
                <!-- /btn-group -->
                <input type="text" name="special_hits_week"  value="{$info.special_hits_week|default=''}" class="form-control text-center" >
              </div>   
              </div>                                          
                                                                                    
              <div class="col-md-3 col-sm-6 col-xs-6 mb10 pr0">
               <div class="input-group">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-title">日人气：</span>
                <span class="form-left-title-hide"></span>
                </div>
                <!-- /btn-group -->
                <input type="text" name="special_hits_day"  value="{$info.special_hits_day|default=''}" class="form-control text-center" >
              </div>   
              </div> 
              
               <div class="col-md-3 col-sm-6 col-xs-6 mb10 prrr0">
               <div class="input-group">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-title">评分值：</span>
                <span class="form-left-title-hide"></span>
                </div>
                <!-- /btn-group -->
                <input type="text" id="special_gold" name="special_gold"  value="{$info.special_gold|default=''}" class="form-control text-center" >
              </div>   
              </div>
                           
                <div class="col-md-3 col-sm-6 col-xs-6 mb10">
               <div class="input-group">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-title">评分人：</span>
                <span class="form-left-title-hide"></span>
                </div>
                <!-- /btn-group -->
                <input type="text" id="special_golder" name="special_golder"  value="{$info.special_golder|default=''}" class="form-control text-center" >
              </div>   
              </div>
              </div>
              <!-- /row -->
                             
              
                                             
            </div> 
            <!-- /.tab_2 -->
         
        <div class="box-footer {notempty name=":request()->param('dialog')"}hidden{/notempty} layer-footer">
          <div  class="footer-btn">
               <button type="submit" class="btn btn-success btn-embossed">确定</button>
               <button type="reset" class="btn btn-default btn-embossed">重置</button>
               {notempty name=":request()->param('dialog')"}
               <button type="reset" class="btn btn-primary btn-embossed btn-close" onClick="layer.closeAll();"> 关闭</button>
               {/notempty}
            </div>
       </div>
       <!-- /.box-footer -->     
</div>
<!-- /.box-body --> 
</form>
</div>
<!-- /.nav-tabs-custom -->    
{include file="public/footer" /}
<script type="text/javascript">
$(document).ready(function(){
	zanpian.cms.vod();
    $(document).on('click', ".addurl", function() {
			var $old = $("#urldata>.urldata:last").html();
			$urln = $("#urldata>.urldata").length;
			$old = $old.replace("周期" + $urln, "周期" + ($urln + 1));
			$("#urldata>.urldata:last-child").after('<div class="urldata input-group mb10" id="data_' + ($urln + 1) + '">' + $old + '</div>');
			$("#urldata>.urldata:last #special_date").val($("#special_date:last option").val());
			$("#urldata>.urldata:last textarea").val('');
					
	})		

});	
</script>
</body>
</html>
